package com.catmiw.funds.domain.middle;

import com.catmiw.funds.domain.Fund;

public class IncreaseRanking implements Comparable<IncreaseRanking>{
	private static int SORTMODE=0;
	private Fund fund;
	private Double value;
	public static int getSORTMODE() {
		return SORTMODE;
	}
	public static void setSORTMODE(int sORTMODE) {
		SORTMODE = sORTMODE;
	}
	public Fund getFund() {
		return fund;
	}
	public void setFund(Fund fund) {
		this.fund = fund;
	}
	public Double getValue() {
		return value;
	}
	public void setValue(Double value) {
		this.value = value;
	}

	public int compareTo(IncreaseRanking o) {
		return SORTMODE==0?value.compareTo(o.getValue()):o.getValue().compareTo(value);
	}
}	
